package com.twu.biblioteca.options;

import com.twu.biblioteca.Application;
import com.twu.biblioteca.Book;
import com.twu.biblioteca.Interfaces.MenuOption;

public class ListAllBooksOption implements MenuOption {
    @Override
    public void run(Application application) {
        System.out.println("Listing all the books:");
        System.out.println("_______________________");
        for (Book book : application.getBooks()) {
            System.out.println(book);
        }

    }
}
